package com.dst.note.editor.render.line_render;

import com.dst.note.model.Paragraph;
import com.dst.note.editor.render.NoteLineSpanRender;
import com.dst.note.editor.spans.NoteNumSpan;

/**
 * Created By tgl on 2020/10/6
 */
public class NoteNumSpanRender extends NoteLineSpanRender<NoteNumSpan> {

    public NoteNumSpanRender(){
    }

    @Override
    protected boolean isLineStyle(Paragraph paragraph) {
        return paragraph.isNumList();
    }

    @Override
    protected NoteNumSpan createSpan(int num, int level, String url) {
        return NoteNumSpan.create(num);
    }
}
